<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>菜单</title>
</head>
<body>

<div id="menu" th:fragment="menu">
    <el-menu
            class="el-menu-demo"
            mode="horizontal"
            background-color="#545c64"
            text-color="#fff"
            default-active="nonono"
            @select="selectMenu"
            :ellipsis="false"
    >
        <el-sub-menu index="1">
            <template #title>菜单</template>
            <el-menu-item index="/">首页</el-menu-item>
            <el-menu-item th:index="${'/clock'}">打卡</el-menu-item>
            <el-menu-item th:index="${'/config'}">配置</el-menu-item>
            <el-menu-item th:index="${'/history'}">请求历史</el-menu-item>
        </el-sub-menu>
        <el-sub-menu index="2">
            <template #title>姓名：[[${userName}]]</template>
            <el-menu-item index="/aaa" :disabled="true">
                build at: [[${buildTime}]]
            </el-menu-item>
        </el-sub-menu>
    </el-menu>


</div>

</body>
</html>